import { PureComponent } from 'react'
import { Divider, Input, Button } from 'antd'
import SingleTable from 'components/table/index'
import styles from './returnGoods.less'
export default class ReturnGoods extends PureComponent {
    render(){
        const dataList = []
        const columns = [
        {
            key: 'gmtCreate',
            title: 'ID',
            dataIndex: 'gmtCreate',
            align: 'center',
        },
        {
            key: 'operationTypeName',
            title: '联系电话',
            dataIndex: 'operationTypeName',
            align: 'center',
        },
        {
            key: 'creatorName',
            title: '国内快递单号',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '1',
            title: '物流单号',
            dataIndex: 'gmtCreate',
            align: 'center',
        },
        {
            key: '2',
            title: '物流公司',
            dataIndex: 'operationTypeName',
            align: 'center',
        },
        {
            key: '3',
            title: '退运类型',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '4',
            title: '退运原因',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '5',
            title: '地址',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '6',
            title: '创建时间',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '7',
            title: '操作人',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '8',
            title: '操作',
            dataIndex: 'creatorName',
            align: 'center',
            render: (text, record) => (
                <span>
                  <a>编辑</a>
                  <Divider type="vertical" />
                  <a>删除</a>
                </span>
            ),
        },
        ]
        return(
            <div className={styles.returnGoods}>
                <div className={styles.returnGoodsBox}>
                    <h2>退货列表</h2>
                </div>
                <div className={styles.returnGoodsSearch}>
                    <div className={styles.returnGoodsSin}>
                        <span className={styles.returnGoodsSpan}>国内快递单号：</span>
                        <Input  className={styles.returnGoodsInput}/>
                    </div>
                    <div className={styles.returnGoodsSin} style={{margin: '0 28px'}}>
                        <span className={styles.returnGoodsSpan}>物流单号：</span>
                        <Input  className={styles.returnGoodsInput}/>
                    </div>
                    <div className={styles.returnGoodsSin}>
                        <span className={styles.returnGoodsSpan}>电话：</span>
                        <Input  className={styles.returnGoodsInput}/>
                    </div>
                </div>
                <Button type="primary" icon="search" style={{margin: '0 0 24px 24px'}}>查询</Button>
                <div className={styles.returnGoodsTable}>
                    <SingleTable
                        data={{ list: dataList }}
                        columns={columns}
                    />
                </div>
            </div>
        )
    }
}